<template>
	<view>
		<img class="img" v-for="list in list" key="list.id" :src="list.img"></img>
	</view>
</template>

<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
const search = ref(null)
const list=ref([])//获取后端详情的数据
	onLoad((option)=>{
		console.log(option)
		search.value = option
		sousuo()
	})
	
	function sousuo(){
		console.log("search.valu===",search.value);
		uni.request({
			url: 'http://localhost:3000/app/search_hunsha',
			method: 'GET',
			data: {
				kind: search.value
			},
			success: (res) => {
				console.log(res.data.search_list)	
				list.value = res.data.search_list
			}
		})
	}
</script>

<style lang="scss" scoped>
	  .img{
		display: block;
		max-width: 100%;
		height: auto;
		// width: 100%;
		// height: 975rpx;
	  }     
</style>
